package qlsl.androiddesign.adapter.subadapter;

import java.util.List;

import com.qlsl.androiddesign.kuaiwa.R;

import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import qlsl.androiddesign.activity.baseactivity.BaseActivity;
import qlsl.androiddesign.adapter.baseadapter.BaseAdapter;
import qlsl.androiddesign.entity.otherentity.CarBrand;

/**
 * 品牌列表<br/>
 */
public class BrandAdapterOld extends BaseAdapter<CarBrand> {

	public BrandAdapterOld(BaseActivity activity, List<CarBrand> list) {
		super(activity, list);
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		convertView = getItemView(convertView, R.layout.listitem_machine);

		TextView tv_name = getView(convertView, R.id.tv_text);

		CarBrand item = getItem(position);
		String text = item.getName();

		tv_name.setText(text);

		return convertView;
	}
}
